#ifndef _HUDLAYER_H_
#define _HUDLAYER_H_

#include "cocos2d.h"

/**
 * The layer displays the current score.
 */
class HudLayer:
	public cocos2d::CCLayer
{
public:
	HudLayer();
	bool init();
	void updateScore(int score);
	void updateShield(int shield);
	void updateHealth(int health);
	void changeGunCallback(cocos2d::CCObject* pSender);
	void autofireCallback(cocos2d::CCObject* pSender);
	void enableDrawDebug(cocos2d::CCObject* pSender);

	// implement the "static node()" method manually
	CREATE_FUNC(HudLayer);

private:
	cocos2d::CCLabelTTF*		__pScoreLabel;
	cocos2d::CCLabelTTF*		__pShieldLabel;
	cocos2d::CCLabelTTF*		__pHealthLabel;
	cocos2d::CCMenuItemToggle* 	__pAutofireButton;
	cocos2d::CCMenuItemToggle* 	__pDrawDebugButton;
	cocos2d::CCMenuItemToggle* 	__pChangeGunButton;
};

#endif //_HUDLAYER_H_
